﻿using System;
using System.Collections.Generic;
using System.Text;
using DuckGame1._0.Fly;
using DuckGame1._0.Duck;
using DuckGame1._0.Quack;

namespace DuckGame1._0.Duck
{
    /// <summary>
    /// 所有鸭子的类
    /// </summary>
    /// <returns></returns>
    public class DuckBase
    {
        //所有鸭子的行为
        public string Swing()
        {
            return "我是Duck,我肯定会游泳。";
        }
        //展示效果
        public virtual string Duisplay()
        {
            return "";
        }
        #region 个性行为
        //飞行行为
        public IFlyBehaviop FlyBehaviop { get; set; }

        //个性行为
        public IQuackBehavior QuackBehavior { get; set; }
        #endregion 
    }
}
